﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Eacademy.Library.Validations
{
    public sealed class ValidationDataAnnotationsProvider
    {
        private ValidationDataAnnotationsProvider()
        {
        }

        public static void RegisterAdapters()
        {
            DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(MustMatchPropertyAttribute), typeof(DataAnnotationsMustMatchPropertyValidator));
            DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(MustMatchObjectPropertyAttribute),typeof(DataAnnotationsMustMatchObjectPropertyValidator));
            DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(MustMatchEncryptedSolutionAttribute), typeof(DataAnnotationsMustMatchEncryptedSolutionValidator));
        }
    }
}